<template>
    <div class="heads bg">
        <p @click="out">
            <i class="van-icon van-icon-arrow-left"></i>
        </p>
        <p><slot></slot></p>
        <p></p>
    </div>
</template>

<script>
export default {
    methods: {
        out(){
            history.go(-1);
        }
    },
}
</script>

<style lang="scss" scoped>
.heads {
    height: 1rem;
    width: 7.5rem;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    padding: 0 0.3rem;
    position: fixed;
    left: 0;
    top: 0;
    box-sizing: border-box;
    p:nth-of-type(1){
        font-size: 0.36rem;
    }
    p:nth-of-type(2) {
        font-size: 0.3rem;
    }

}

</style>